
var pingpp = require('pingpp.js')

require('./app')({

}, function() {

  var paymentId = $("#payment_id").val()
  if(paymentId) {
    $.ajax({
      type: 'GET',
      url: "/payments/get_charge?id=" + paymentId,
      success: function(data) {
        pingpp.createPayment(data, function(result, err) {
        })
      }
    })
  }
})
